package org.ilovecode.display {
	
	import flash.display.MovieClip;
	import gs.TweenLite;
	import gs.easing.*;
	
	/**
	 * ...
	 * @author Vjekoslav Ratkajec
	 */
	public class MenuItem extends MovieClip {
		
		public var graphic:MovieClip;
		private var duration:Number = 0.3;
		
		public function MenuItem() {
			init();
		}
		
		private function init():void {
			this.buttonMode = true;
		}
		
		public function animateMouseOver():void {
			TweenLite.to(graphic, duration, { x:25 } );
		}
		
		public function animateMouseOut():void {
			TweenLite.to(graphic, duration, { x:0 } );
		}
		
	}

}